import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
export default new Vuex.Store({
    state: {
        searchText: '',
        cookie: ''
    },
    mutations: {
        getIptVal(state, data) {
            state.searchText = data
        },
        getCookie(state, data) {
            state.cookie = data
        },
        clearCookie(state) {
            state.cookie = ''
        }

    },
    actions: {}
})